import requests
import pprint
def get_stock_rank():
    url = "https://api.doctorxiong.club/v1/stock/rank"
    res = requests.post(url,json={
        "sort":'pricePercent',
        "pageSize":30,
    })
    return res.json()['data']

#https://api.doctorxiong.club/v1/stock/industry/rank
def hot_stock():
    url ='https://api.doctorxiong.club/v1/stock/hot'
    res = requests.get(url)
    return res.json()

def industry_stock():
    url ='https://api.doctorxiong.club/v1/stock/industry/rank'
    res = requests.get(url)
    return res.text
#print(get_stock_rank())
pprint.pprint(industry_stock())